package com.xdf.whiteaccount.service;
import com.xdf.whiteaccount.utils.Example;
import com.xdf.whiteaccount.entity.JrkbilldraftCpIdTransfer;
import java.util.List;
import java.util.Optional;

/**
 * @Description : 服务层接口，由代码生成器自动生成
 * @Author : chanchaw
 * @Date : 2025-9-16 10:11:07
 */
public interface JrkbilldraftCpIdTransferService {
    JrkbilldraftCpIdTransfer insert(JrkbilldraftCpIdTransfer record);

    JrkbilldraftCpIdTransfer insertSelective(JrkbilldraftCpIdTransfer record);

    List<JrkbilldraftCpIdTransfer> multiInsert(List<JrkbilldraftCpIdTransfer> list);

    int updateByPrimaryKey(JrkbilldraftCpIdTransfer record);

    int updateByPrimaryKeySelective(JrkbilldraftCpIdTransfer record);
    // 根据主键查询
    JrkbilldraftCpIdTransfer selectByPrimaryKey(Long id);

    List<JrkbilldraftCpIdTransfer> selectAll();

    JrkbilldraftCpIdTransfer save(JrkbilldraftCpIdTransfer record);
    List<JrkbilldraftCpIdTransfer> multiSave(List<JrkbilldraftCpIdTransfer> list);

    //================= 下面是默认方法 ==================
    default void checkEntityNotNull(JrkbilldraftCpIdTransfer record){// 返回true表示合法，可继续
        if(record == null) throw new RuntimeException("无法保存空数据！");
    }

    default JrkbilldraftCpIdTransfer fullFill(JrkbilldraftCpIdTransfer record){
        return record;
    }

    default void doBeforeInsert(JrkbilldraftCpIdTransfer record){}
    default void doAfterInsert(JrkbilldraftCpIdTransfer record){}
    List<JrkbilldraftCpIdTransfer> selectByExample(Example<JrkbilldraftCpIdTransfer> example);
    //=================以上是自动生成的代码，自定义代码请写在下面==================
}